package com.setup.trac.pojo.condition;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.setup.trac.util.SQLCondition;

public class AllegatiFinderByIdStorico implements SQLCondition {

	private String idStorico;
	public AllegatiFinderByIdStorico(String idStorico) {
		super();
		this.idStorico = idStorico;
	}


	public Criterion create(Object... params) {
		return Restrictions.eq("storicoTicket.idStorico", new BigDecimal(idStorico));
	}


}
